package org.dyk.mallmanagementsystem.service.user;

import org.dyk.mallmanagementsystem.model.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {
    //查询所有用户信息，并分页
    public Page<User> findAll(Pageable pageable);

    //查询所有用户
    public List<User> findAll();

    //根据 主键 获取用户信息
    public User findByUid(int uid);

    //添加用户
    public boolean inser(String userLoginName, String userPasswor, String userName);

    //修改用户
    public boolean updata(int uid, String userLoginName, String userPasswor, String userName);

    //删除用户
    public boolean delete(int uid);

    //自定义查询用户
    public List<User> selectUser(String loginName, String userName);
}
